package com.windhc.taotao.api;

import com.windhc.taotao.entity.Consumer;
import lombok.extern.slf4j.Slf4j;
import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Mapping;
import org.noear.solon.core.handle.MethodType;

/**
 * @author windhc
 */
@Slf4j
@Controller
@Mapping("/api/consumer")
public class ConsumerEndpoint {

    @Mapping(value = "/current", method = MethodType.GET)
    public Consumer getCurrent() {
        Consumer consumer = new Consumer();
        consumer.setId(1122L);
        return consumer;
    }
}
